<script src="./vue .js"></script>
<body>
<div id="app">
    <button @click="shouwMyData" >请单击</button>
    <p>触发生成的事件</p>
</div>
<script>
    var app=new Vue ({
        el: "#app",
        data: {
            msg:'点击生成出来的数据',
        },
        methods:{
            shouwMyData() {
                console.log('12313214565565656')
                this.msg="生成最新消息"
            }
        }
    });
</script>
</body>